/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: PrimeCostDAOImpl.java
 * @PageName		: 제조원가, 제조경비 
 * @Date			: 오후 4:19:37
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.management.dao.impl;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.pulp.management.dao.PrimeCostDAO;
import com.pulp.management.model.PrimeCostInfo;

/**
 * @author 최경민
 *
 */
public class PrimeCostDAOImpl extends SqlMapClientDaoSupport implements PrimeCostDAO{

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.PrimeCostDAO#getLineChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PrimeCostInfo> getLineChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.LineChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.PrimeCostDAO#getPrimeTableList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PrimeCostInfo> getPrimeTableList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.PrimeTableList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.PrimeCostDAO#getFactoryCostTableList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PrimeCostInfo> getFactoryCostTableList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.FactoryCostTableList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.PrimeCostDAO#getStackChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PrimeCostInfo> getFactoryCostStackChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.FactoryCostStackChartList", mapArgs);
	}

}
